#include "digit.h"

Digit::Digit()
    : digit(0)
{
    s = new QSemaphore(1);
}

Digit::~Digit()
{
    delete s;
}

int *Digit::getDigit()
{
    s->acquire();
    return &digit;
}

void Digit::finish()
{
    s->release();
}
